#include<stdio.h>
void bubbling(int* arr, int sz)
{
	int i = 0;
	for (i = 0; i < sz - 1; i++)
	{
		int j = 1;
		for (j = 1; j < sz - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int temp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = temp;
			}
		}
	}
}

int main()
{
	int arr[10];
	int i = 0, n;
	while (i < 10)
	{
		scanf("%d", &n);
		arr[i] = n;
		i++;
	}
	int sz;
	sz = sizeof(arr) / sizeof(0);
	bubbling(arr,sz);
	for (int j = 0; j < 10; j++)
	{
		printf("%d ", arr[j]);
	}
	return 0;
}
